package 每日一题OJ;

/**
 * @author shy_black
 * @date 2019/3/13 16:22
 * @Description:
 */
import java.util.Scanner;

public class 最小公倍数{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int m = min(a,b);
        int n = a*b/m;
        System.out.print(n);
    }
    public static int min(int a,int b) {
        if(a > b) {
            int temp = a;
            a = b;
            b = temp;
        }
        while(a != 0) {
            if(a == b)
                return a;
            else {
                int k = b % a;
                b = a;
                a = k;
            }
        }
        return b;
    }
}
